package com.example.dockertest.controller;

import com.example.dockertest.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private TestService testService;
    @RequestMapping("/test")
    public String test() {
//        try {
//            Thread.sleep(500000L);
//        } catch (Exception e) {
//
//        }

        return "线程休眠daigeg";
    }

    @RequestMapping("/test2")
    public String test2() {
        return "Docker测试大哥大修啊！";
    }
}
